package com.wf.ew.system.biz;

import com.wf.ew.common.PageResult;
import com.wf.ew.system.model.Dictionary;
import com.wf.ew.system.model.User;
import org.apache.poi.ss.formula.functions.T;

/**
 *
 * 数据层接口
 * @author : Doman
 * @date : 2019-08-06 16:04:44
 * @version ：1.0
 */
public interface DictionaryBiz {

	/** 获取实体类表格
	 * @param page
	 * @param dictionary
	 * @return
	 */
	public String list(PageResult<T> page, Dictionary dictionary);//获取实体类表格

	/**
	 *
	 * @param dictionary
	 * @return
	 */
	public Dictionary getById(Dictionary dictionary);//根据Id查询实体类

	/**
	 *
	 * @param dictionary
	 * @param loginUser
	 * @return
	 */
	public boolean add(Dictionary dictionary, User loginUser);//保存实体类

	/**
	 *
	 * @param dictionary
	 * @param loginUser
	 * @return
	 */
	public boolean update(Dictionary dictionary, User loginUser);//修改实体类

	/**
	 *
	 * @param dictionary
	 * @param loginUser
	 * @return
	 */
	public boolean delete(Dictionary dictionary, User loginUser);//删除实体类

}
